v1=[1,2,3,4,5,6,7,8,9]
v2={}
for item in v1:
    if item<6:
        continue
    if 'k1' in v2:
        v2['k1'].append(item)
    else:
        v2['k1']=[item]
print(v2)
v2={'k1':[6]}
if 'k1' in v2:
    v2['k1'].append(7)
print(v2)


import copy
v1=[1,2,3,4,5]#值都是不可变类型
v2=copy.copy(v1)
v3=copy.deepcopy(v1)

print(v1[0] is v2[0])
print(v1[0] is v3[0])
print(v2[0] is v3[0])

v1=[1,2,3,4,[11,22]]
v2=copy.copy(v1)
v3=copy.deepcopy(v1)

print(v1[-1] is v2[-1])
print(v1[-1] is v3[-1])
print(v2[-1] is v3[-1])


